﻿@model Physis.Client.Models.Insurer.BenefitPlanModel

@{ Layout = "~/Views/Configuration/ConfigurationItemMaster.cshtml"; }

<script type="text/javascript" src="~/Scripts/Application/Insurer/BenefitPlan.js"></script>

@section ItemPropertyTabsContent_GeneralProperties {

    <table style="border-collapse:separate; border-spacing: 5px;" > 

        <thead><tr><th style="width: 100px"></th><th style="width: 100px"></th><th></th></tr></thead>
        
        @if (Model.BenefitPlan.Id == 0) { 

        <tr>

            <td style="font-weight: bold;">Program:</td>

            <td colspan="2">@Html.DropDownListFor(model => model.BenefitPlan.ProgramId, Model.ProgramSelectList, new { style="width: 250px;" })</td>

        </tr>
        
        <tr>

            <td style="font-weight: bold;">Insurance Type:</td>

            <td colspan="2">@Html.DropDownListFor(model => model.BenefitPlan.InsuranceTypeId, Model.InsuranceTypeSelectList, new { style="width: 250px;" })</td>

        </tr>
            
        }

        else {
            
        <tr>

            <td style="font-weight: bold;">Program:</td>

            <td colspan="2">@Model.BenefitPlan.ProgramName</td>

        </tr>
        
        <tr>

            <td style="font-weight: bold;">Insurance Type:</td>

            <td colspan="2">@Model.BenefitPlan.InsuranceTypeName</td>

        </tr>
            
        }

        <tr>
            
            <td style="font-weight: bold;">Unique Id:</td>

            <td>@Html.TextBoxFor(model => model.BenefitPlan.UniqueId, new { style="width: 100px;", maxlength="20" })</td>

            <td><div class="ui-state-default ui-corner-all" style="width: 16px; cursor: help;" title="(optional) Unique Business Identifier for the Program. If missing, will automatically be set to the Id of the Entity."><span class="ui-icon ui-icon-help"></span></div></td>

        </tr>

        <tr>

            <td style="font-weight: bold;">Legacy Id:</td>

            <td>@Html.TextBoxFor(model => model.BenefitPlan.LegacyId, new { style="width: 100px;", maxlength="20" })</td>

            <td><div class="ui-state-default ui-corner-all" style="width: 16px; cursor: help;" title="(optional) Unique Identifier of the Program in the original Legacy System. Can be used for mapping data between systems."><span class="ui-icon ui-icon-help"></span></div></td>

        </tr>


    </table>
    
}

@section ItemPropertyTabs {
    
}

@section ItemPropertyTabsContent {

    
}